package com.bootdo.clouddo.dao.douban;

import com.bootdo.clouddo.dao.BaseMapper;
import com.bootdo.clouddo.domain.douban.DbBookRecommendation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DbBookRecommendationMapper extends BaseMapper<DbBookRecommendation> {

    List<Long> findNoRecommendIds();

    Boolean exists(@Param("sid") Long sid, @Param("subjectId") Long subjectId);

    List<DbBookRecommendation> findBySubjectId(@Param("subjectId") Long subjectId);
}